﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Page.ascx.cs" Inherits="UserControls_Page" %>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" type="text/javascript">
    function check()
    {
       
        if(parseInt(document.getElementById('<%=this.lbSumPage.ClientID%>').innerText)<parseInt(document.getElementById('<%=this.txtPage.ClientID%>').value))
        {
            alert("输入的页数不能大于总的页数！");
            return false;
        }
        if(parseInt(document.getElementById('<%=this.txtPage.ClientID%>').value)<1)
        {
            alert("输入的页数必须大于0！");
            return false;
        }
    }
</script>
<table width="720" >
    <tr>
    
    <td height="35" align="center" valign="middle">
    第<asp:Label ID="lbCurrentPage" runat="server" ForeColor="Red" Text="1"></asp:Label>页/总<asp:Label
                ID="lbSumPage" runat="server" ForeColor="Red" Text="0"></asp:Label>页 | 总<asp:Label ID="lbSumRecord" runat="server" ForeColor="Red" Text="0"></asp:Label>条
    |
    <asp:LinkButton ID="lbFirst" runat="server" OnClick="lbFirst_Click">首页</asp:LinkButton>
    |
    <asp:LinkButton ID="lbUP" runat="server" OnClick="lbUP_Click">上页</asp:LinkButton>
    |
    <asp:LinkButton ID="lbDown" runat="server" OnClick="lbDown_Click">下页</asp:LinkButton>
    |
    <asp:LinkButton ID="lbLast" runat="server" OnClick="lbLast_Click">尾页</asp:LinkButton>
    转到：第
    <asp:TextBox ID="txtPage" runat="server"  CssClass="in_p2" Width="44px" onkeyup="value=value.replace(/[^\d]/g,'');updateQuantity(this.value)"></asp:TextBox>页    
    页
    <asp:Button ID="btnGO" runat="server" OnClick="btnGO_Click" Text="GO" OnClientClick="return check()" />
    </td>
    </tr>
</table>

